<%--
 *  File:    AttchmentEdit.jsp
 *  @Author: Kolleryao
 *  Date:    2002/11/29
 *
 *  Copyright (C) 2000 - 2002 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>



<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.OvalLabel" %>
<%@ page import="com.oval.util.OvalCustomColumn" %>
<%@ page import="com.oval.util.OvalCustomMessage" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  String strModuleName = "BIEE";
  String privilegeCode = "Z0401";
  String strType=(String)request.getParameter("relatedentitytype");
  %>

<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title><%= label.getLabelName("L_NEAccessory") %> </title>
<%	//System.out.println("|"+strType+"|"+strType.equals("1"));
//if (strType.equals("1"))
//{%>
<PageFlow:CheckPageFlow pageName="attchmentedit"/>
<%//}else{%>
<%--<PageFlow:CheckPageFlow pageName="accessoryedit2"/>--%>
<%//}%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%
HashMap attachmentinfo = (HashMap)pageContext.getAttribute("attachmentinfo");
	if(attachmentinfo == null)
  	{
    	attachmentinfo = new HashMap();
  	}
	String strAttachmentid=request.getParameter("attachmentid");
%>

<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../css/<%= strLanguageCode %>/script.js">
</script>
</head>
<script>

function saveit()
{
cform.actionname.value = "save";
  	cform.target = "_self";
  	isRunning = true;
  	cform.submit();
}

</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="0">
  <tr >
    <td colspan="4" height="31"><img src="../images/<%= strLanguageCode %>/quote.gif" width="16" height="11">
      <%= label.getLabelName("L_NEAccessory") %></td>
  </tr>
</table>
<table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
<form name="cform" method="post" action="../Dispatcher"  target="_parant">
	<input type="hidden" name="actionname">
	<input type="hidden" name="pagename" value="attchmentedit">
<%--	<input type="hidden" name="attachmentid" value="<%=JspHelper.filterNull(strAttachmentid)%>">--%>
<custom:hidden property="attachmentid"/>
	<tr>
    <td class="td-text" width="100"><%=label.getLabelName("L_AccessoryName") + label.getLabelName("L_Colon")%></td>
    <td colspan="3"> &nbsp;<custom:write name="attachmentinfo" property="attachmentname"/> </td>
  </tr>
  <tr>
    <td class="td-text" width="100"><%=label.getLabelName("L_filename") + label.getLabelName("L_Colon") %></td>
    <td colspan="3">&nbsp;<custom:write name="attachmentinfo" property="filename"/> </td>
  </tr>
  <tr>
    <td class="td-text" width="100"><%=label.getLabelName("L_FileSize") + label.getLabelName("L_Colon") %></td>
    <td width="317"> &nbsp;<custom:write name="attachmentinfo" property="filesize"/>KB</td>
    <td class="td-text" width="124"><%=label.getLabelName("L_filetype") + label.getLabelName("L_Colon") %></td>
    <td width="444">&nbsp;<custom:write name="attachmentinfo" property="filetype"/></td>
  </tr>
  <tr>
    <td class="td-text" height="32" width="100"><%=label.getLabelName("L_objectType")%></td>
    <td height="32" width="317">&nbsp;<custom:write name="attachmentinfo" property="relatedentitytypename"/></td>
    <td class="td-text" height="32" width="124"><%=label.getLabelName("L_Related") + label.getLabelName("L_Colon") %></td>
	<%//if (strType.equals("1"))
//{%>
    <td height="32" width="444">&nbsp;<custom:write name="attachmentinfo" property="orgname"/></td>
<%//}else{%>

<%--<td height="32" width="444">&nbsp;<custom:write name="attachmentinfo" property="contactname"/></td>--%>
<%--	 <%}%>--%>
  </tr>
  <tr>
    <td class="td-text" height="28" width="100"><%=label.getLabelName("L_Comments") + label.getLabelName("L_Colon") %></td>
    <td colspan="3" height="28">
	&nbsp;<custom:text name="attachmentinfo" property="comments"/>    </td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
      <td class="summary_top"></td>
    </tr>
    <tr>
      <td class="td_center"><a onclick="saveit()"><custom:button type="1" label="L_Save" imgsrc="save.gif" border="0" style="width:60"/></a></td>
    </tr>
</table>
</body>
</html>


